package com.cu.langchain4j.controller;

import com.cu.langchain4j.assistant.ZPAssistant;
import dev.langchain4j.service.spring.AiService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("test")
public class TestController {

    @Autowired
    ZPAssistant zpAssistant;
    @RequestMapping("test")
    public String test(String message) {
        return zpAssistant.chat(message);
    }
}
